home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_bab_commiewarning.cog < prev    next >
Text File  |  1999-11-15  |  4KB  |  121 lines

  1. # Jones 3D Cog Script
  2. #
  3. # BAB_introsceme.cog
  4. #
  5. # [SXC]
  6. #
  7. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  8. # ========================================================================================
  9.  
  10. symbols
  11.  
  12.     message     startup
  13.     message     entered
  14.     message     user0
  15.    
  16.     thing       player                              local
  17.     thing       indyactor
  18.     thing       actor_sight0
  19.     cog         targetcog
  20.     
  21.     thing       spinpos
  22.     
  23.     thing       cam0
  24.     thing       cam0_tgt0
  25.     thing       cam0_tgt1
  26.     
  27.     surface     tripsurf
  28.     
  29.     keyframe    inStand2=0in_stand2.key             local
  30.     keyframe    in_stand1_2=0in_stand1_bd_2.key      local
  31.     keyframe    in_leanin=0in_leanin_2_2.key        local
  32.     
  33.     sound       indyline0=bb01j02.wav               local
  34.     sound       indyline1=bb03j02.wav               local
  35.     sound       redmusic=mus_gen_russsubdued1.wav   local
  36.     
  37.     int         checkit=0                           local
  38.     int         in_track0                           local
  39.     int         themechan=0                         local
  40.     int         jeepchan=0                          local
  41.     
  42. end
  43.  
  44. code
  45.  
  46. # ========================================================================================
  47. startup:
  48.     player = GetLocalPlayerThing();
  49.     return;
  50.         
  51. # ========================================================================================
  52. user0:
  53.  
  54.     checkit = 1;
  55.     
  56. return;
  57.  
  58. # ========================================================================================
  59. entered:
  60.     if ((checkit == 0) && (GetSenderRef() == tripsurf))
  61.     {
  62.         checkit=1;
  63.         StartCutscene(1);
  64.         SetActorFlags(player, 0x200000);
  65.         StopThing(player);
  66.         PlayMode(player, 1, 0);
  67.         TeleportThing(indyactor, player);
  68.         
  69.         //cut to valley cam
  70.         SetCameraFocus(2, cam0);
  71.         SetCameraSecondaryFocus(2, cam0_tgt0);
  72.         SetCurrentCamera(2);
  73.         SetCameraFOV(50, 0, 0);
  74.         PlaySoundLocal(redmusic, 0.75, 0, 0, 0);
  75.         
  76.         //start the scene
  77.         CopyPlayerHolsters(player, indyactor);
  78.         SetThingFlags(player, 0x80000);
  79.         ClearThingFlags(indyactor, 0x80000);
  80.         AISetCutsceneMode(indyactor);
  81.         AISetMoveSpeed(indyactor, 1);
  82.         AISetLookThing(indyactor, actor_sight0);
  83.         AISetMoveFrame(indyactor, 1);
  84.         AIWaitForStop(indyactor);
  85.         
  86.         //start to move Camera in
  87.         SetCameraLookInterp(2, 1);
  88.         SetCameraInterpSpeed(2, 4);
  89.         Sleep(0.01);
  90.         
  91.         //play keys and voice files
  92.         in_track0 = PlayKey(indyactor, instand2, 2, 0x00, 0);
  93.         PlayKey(indyactor, in_stand1_2, 4, 0x12, 0);
  94.         PlayVoice(indyactor, indyline0, 1, 1);
  95.         SetCameraSecondaryFocus(2, cam0_tgt1);
  96.         SetCameraFOV(90, 1, 1);
  97.         PlayVoice(indyactor, indyline1, 1, 1);
  98.         StopKey(indyactor, in_track0, 0.75);
  99.         Sleep(2);
  100.         
  101.         //Restore Everything
  102.         CopyOrientAndPos(indyactor, player);
  103.         SetCameraLookInterp(2, 0);
  104.         SetCameraPosInterp(2, 0);
  105.         SetCameraInterpSpeed(2, 0);
  106.         ClearThingFlags(player, 0x80000);
  107.         SetThingFlags(indyactor, 0x80000);
  108.         Sleep(1);
  109.         SetCameraPosition(1, GetThingPos(spinpos));
  110.         SetCurrentCamera(1);
  111.         SetCameraFOV(90, 0, 0);
  112.         EndCutscene();
  113.         ClearActorFlags(player, 0x200000);
  114.         SendMessage(targetcog, user4);
  115.     }
  116.         
  117. return;
  118.         
  119. #----------------------------------------------------------------------------------------
  120.  
  121. end